package gdatastructure;
public class Vertex{
	int value;//名字
	private boolean isVisited;//是否被访问过，迪杰斯特拉
        public double x;//坐标x
        public double y;//坐标y
	public Link link;//
        public int streetnumber1;//代表这个点所连接的街道从那一个数开始
        public int streetnumber2;//到那一个数结束
	Vertex(int value){
		link = new Link();
		this.value = value;
		isVisited = false;
                streetnumber1=0;
                streetnumber2=0;
	}
        void visit(){
		isVisited = true;
        }
	boolean isVisited(){
		return isVisited;
	}
        
}